package com.ai.dmc.index.common;

import java.util.HashMap;
import java.util.Map;
import java.util.Set;

import com.ai.dmc.index.common.bean.StaffSessBean;

//import com.asiainfo.os.bean.StaffSessBean;

/**
 * 
 * @Description : 系统参数配置
 * 
 * @author : wucm
 * @date : 2015年4月5日 下午9:43:34
 * @version V1.0
 * 
 */
public class InitParam {
	/**
	 * 固定变量
	 */
	public final static String FORMAT_TIME = "yyyy-MM-dd hh24:mi:ss";
	public final static String FORMAT_DAY = "yyyy-MM-dd";
	public final static String BASE64_KEY = "aBCDEFGHIJKLMNOPQRSTUVWXYZAbcdefghijklmnopqrstuvwxyz0123456789_-";
	public final static String DEPLOY_TYPE_PRODUCT = "product";
	public final static String DEPLOY_TYPE_DEVELOP = "develop";
	public final static String DATA_SOURCE_CMCC = "cmcc";
	public final static String DATA_SOURCE_ALL = "all";
	public final static String OPERATOR_SUCCESS_CODE = "1";
	public final static String OPERATOR_FAILURE_CODE = "0";
	public final static String SOURCE_YD = "中国移动";
	public final static String SOURCE_LT = "中国联通";
	public final static String SOURCE_DX = "中国电信";
	public final static String DEPLOY_PROVINCE_ZJ = "zj";
	public final static String DEPLOY_PROVINCE_BJ = "bj";

	/**
	 * 系统相关
	 */
	public static String WEB_APP_PATH = null;
	public static String LOG_LEVEL = null;
	public static String LOG_FILE_PATH = null;
	/** product:上线模式；develop:开发模式 **/
	public static String DEPLOY_TYPE = "product";
	/** 文件上传路径 **/
	public static String FILE_UPLOAD_PATH = "upload";
	/** 热力图缓存 **/
	public static boolean HOT_CACHE = false;
	/** 默认密码 **/
	public static String DEFAULT_PWD = "dtkl@1234";
	/** 加密方式 **/
	public static String CRYPTION_TYPE = "null";
	/** 系统参数初始化脚本监控 **/
	public static boolean INITPARAM_WATCH = false;
	/** 系统数据来源，cmcc：移动数据；all:三网融合数据；hide:不展示功能 **/
	public static String DATA_SOURCE = "cmcc";
	/** 行政区下创建的区域上限 **/
	public static String CUSTOM_REGION_UPPER_LIMIT = "10";
	/** 测试数据自动生成 **/
	public static boolean DEMO_DATA_CREATE_AUTO = true;

	/**
	 * 部署省份相关
	 */
	/** 部署省份 **/
	public static String DEPLOY_PROVINCE = "";
	/** 省份编码 **/
	public static String DEPLOY_PROVINCE_ID = "";
	/** 省份字典值 **/
	public static String DEPLOY_ANALYSIS_PROVINCE_ID = "";

	/** 省份中心点经度 **/
	public static String DEPLOY_PROVINCE_CORE_LNG = "";
	/** 省份中心点纬度 **/
	public static String DEPLOY_PROVINCE_CORE_LAT = "";
	/** 身份证省份编码 **/
	public static String DEPLOY_ID_CARD_PROVINCE_ID = "";
	/** 号段省份编码 **/
	public static String DEPLOY_MSISDN_PROVINCE_ID = "";
	/** 省会 **/
	public static String DEPLOY_PROVINCE_CAPITAL_NAME = "";
	/** 省份简称 **/
	public static String DEPLOY_PROVINCE_NAME_SHORTHAND = "";
	/** 省份名称 **/
	public static String DEPLOY_PROVINCE_NAME = "";
	/** 页面title **/
	public static String DEPLOY_PROVINCE_TITLE = "";
	

	/** 数据库类型 **/
	public static String DB_TYPE = "";
	/** 版权 **/
	public static String COPY_RIGHT = "";
	/** 地市长度 **/
	public static int AREA_CITY_LENGTH = 3;
	/** 区县长度 **/
	public static int AREA_COUNTY_LENGTH = 4;
	/** 区域长度 **/
	public static int AREA_REGION_LENGTH = 6;
	/** 子区域长度 **/
	public static int AREA_SUB_REGION_LENGTH = 8;

	/**
	 * 权限信息相关
	 */
	/** 管理员角色 **/
	public static String ADMIN_JOB_ID = "100001";
	/** 大屏角色 **/
	public static String SCREEN_JOB_ID = "screen";
	/** 开发模式下，默认的用户账号，ADMIN：超级管理员，默认所有权限；DTKL：管理员，受权限控制 **/
	public static String DEVELOP_USER = "DTKL";

	/**顶级区域描述，部署省时为‘全省’，部署市时为‘全市’**/
	public static String TOP_AREA_NAME="全省";
	/**百度地图展现整体区域概况（首页、景区监控）时，最小缩放级别**/
	public static int MAP_MINZOOM=8;
	/**百度地图展现整体区域概况（首页、景区监控）时，最大缩放级别**/
	public static int MAP_MAXZOOM=13;

	/**
	 * 统计信息
	 */
	/** 登录的用户 **/
	public static Map<String, StaffSessBean> LOGINUSERSESSION = new HashMap<String, StaffSessBean>();

	/**
	 * 系统缓存相关
	 */
	/** 初始化系统参数任务时间(s) **/
	public static int INITPARAM_TASK_TIME = 6;
	/** 热力图任务时间(s)--实时 **/
	public static int HOTMAP_TASK_TIME = 5;
	/** 热力图任务时间(s)--历史回放+对比回放 **/
	public static int HOTMAP_TASK2_TIME = 5;
	/** 数据监控任务时间(s) **/
	public static int DATAMONITOR_TASK_TIME = 60;
	/** 用户权限任务时间(s) **/
	public static int USERRIGHT_TASK_TIME = 5;
	/** 数据刷新时间任务时间(s) **/
	public static int DATATIME_TASK_TIME = 5;
	/** AREA任务时间(s) **/
	public static int AREA_TASK_TIME = 5;
	/** 参数表任务时间(s) **/
	public static int DIM_TASK_TIME = 5;
	/** 定时任务开关标识（暂仅用于区域匹配基站任务）,true 开启,false关闭 **/
	public static boolean REGION_MATCH_SITE_FLAG;

	/** 百度api代理模式 **/
	public static String API_AGENT_FLAG = "";

	/** 百度地图代理服务器地址配置 **/
	public static String MAP_AGENT_URL = "";
	
	/** 天气查询代理服务器地址配置 **/
	public static String WEATHER_AGENT_URL = "";
	
	/** 登录地址 **/
	public static String LOGIN_HTML="";
	
	/**
	 * 广西预警阈值设置
	 */
	/** 红色预警阈值 **/
	public static String WARN_RED_NUM = "3";

	/** 橘色预警阈值 **/
	public static String WARN_ORANGE_NUM = "2";
	/** 黄色预警阈值 **/
	public static String WARN_YELLOW_NUM = "1";

	public static Map<String, Set<String>> VISIT_LIMIT_MAP = new HashMap<String, Set<String>>();

	/** 访问限制峰值人数 **/
	public static int VISIT_LIMIT_NUM = 1000;
	
	
	public static String getWEB_APP_PATH() {
		return WEB_APP_PATH;
	}

	public static void setWEB_APP_PATH(String wEB_APP_PATH) {
		WEB_APP_PATH = wEB_APP_PATH;
	}

	public static String getLOG_LEVEL() {
		return LOG_LEVEL;
	}

	public static void setLOG_LEVEL(String lOG_LEVEL) {
		LOG_LEVEL = lOG_LEVEL;
	}

	public static String getLOG_FILE_PATH() {
		return LOG_FILE_PATH;
	}

	public static void setLOG_FILE_PATH(String lOG_FILE_PATH) {
		LOG_FILE_PATH = lOG_FILE_PATH;
	}

	public static String getDEPLOY_TYPE() {
		return DEPLOY_TYPE;
	}

	public static void setDEPLOY_TYPE(String dEPLOY_TYPE) {
		DEPLOY_TYPE = dEPLOY_TYPE;
	}

	public static String getFILE_UPLOAD_PATH() {
		return FILE_UPLOAD_PATH;
	}

	public static void setFILE_UPLOAD_PATH(String fILE_UPLOAD_PATH) {
		FILE_UPLOAD_PATH = fILE_UPLOAD_PATH;
	}

	public static boolean isHOT_CACHE() {
		return HOT_CACHE;
	}

	public static void setHOT_CACHE(boolean hOT_CACHE) {
		HOT_CACHE = hOT_CACHE;
	}

	public static String getDEFAULT_PWD() {
		return DEFAULT_PWD;
	}

	public static void setDEFAULT_PWD(String dEFAULT_PWD) {
		DEFAULT_PWD = dEFAULT_PWD;
	}

	public static String getCRYPTION_TYPE() {
		return CRYPTION_TYPE;
	}

	public static void setCRYPTION_TYPE(String cRYPTION_TYPE) {
		CRYPTION_TYPE = cRYPTION_TYPE;
	}

	public static boolean isINITPARAM_WATCH() {
		return INITPARAM_WATCH;
	}

	public static void setINITPARAM_WATCH(boolean iNITPARAM_WATCH) {
		INITPARAM_WATCH = iNITPARAM_WATCH;
	}

	public static String getDATA_SOURCE() {
		return DATA_SOURCE;
	}

	public static void setDATA_SOURCE(String dATA_SOURCE) {
		DATA_SOURCE = dATA_SOURCE;
	}

	public static String getCUSTOM_REGION_UPPER_LIMIT() {
		return CUSTOM_REGION_UPPER_LIMIT;
	}

	public static void setCUSTOM_REGION_UPPER_LIMIT(String cUSTOM_REGION_UPPER_LIMIT) {
		CUSTOM_REGION_UPPER_LIMIT = cUSTOM_REGION_UPPER_LIMIT;
	}

	public static boolean isDEMO_DATA_CREATE_AUTO() {
		return DEMO_DATA_CREATE_AUTO;
	}

	public static void setDEMO_DATA_CREATE_AUTO(boolean dEMO_DATA_CREATE_AUTO) {
		DEMO_DATA_CREATE_AUTO = dEMO_DATA_CREATE_AUTO;
	}

	public static String getDEPLOY_PROVINCE() {
		return DEPLOY_PROVINCE;
	}

	public static void setDEPLOY_PROVINCE(String dEPLOY_PROVINCE) {
		DEPLOY_PROVINCE = dEPLOY_PROVINCE;
	}

	public static String getDEPLOY_PROVINCE_ID() {
		return DEPLOY_PROVINCE_ID;
	}

	public static void setDEPLOY_PROVINCE_ID(String dEPLOY_PROVINCE_ID) {
		DEPLOY_PROVINCE_ID = dEPLOY_PROVINCE_ID;
	}

	public static String getDEPLOY_ID_CARD_PROVINCE_ID() {
		return DEPLOY_ID_CARD_PROVINCE_ID;
	}
	public static String getDEPLOY_ANALYSIS_PROVINCE_ID() {
		return DEPLOY_ANALYSIS_PROVINCE_ID;
	}

	public static void setDEPLOY_ANALYSIS_PROVINCE_ID(String dEPLOY_ANALYSIS_PROVINCE_ID) {
		DEPLOY_ANALYSIS_PROVINCE_ID = dEPLOY_ANALYSIS_PROVINCE_ID;
	}
	public static void setDEPLOY_ID_CARD_PROVINCE_ID(String dEPLOY_ID_CARD_PROVINCE_ID) {
		DEPLOY_ID_CARD_PROVINCE_ID = dEPLOY_ID_CARD_PROVINCE_ID;
	}

	public static String getDEPLOY_MSISDN_PROVINCE_ID() {
		return DEPLOY_MSISDN_PROVINCE_ID;
	}

	public static void setDEPLOY_MSISDN_PROVINCE_ID(String dEPLOY_MSISDN_PROVINCE_ID) {
		DEPLOY_MSISDN_PROVINCE_ID = dEPLOY_MSISDN_PROVINCE_ID;
	}

	public static String getDEPLOY_PROVINCE_NAME() {
		return DEPLOY_PROVINCE_NAME;
	}

	public static void setDEPLOY_PROVINCE_NAME(String dEPLOY_PROVINCE_NAME) {
		DEPLOY_PROVINCE_NAME = dEPLOY_PROVINCE_NAME;
	}

	public static String getDEPLOY_PROVINCE_TITLE() {
		return DEPLOY_PROVINCE_TITLE;
	}

	public static void setDEPLOY_PROVINCE_TITLE(String dEPLOY_PROVINCE_TITLE) {
		DEPLOY_PROVINCE_TITLE = dEPLOY_PROVINCE_TITLE;
	}

	public static String getDB_TYPE() {
		return DB_TYPE;
	}

	public static void setDB_TYPE(String dB_TYPE) {
		DB_TYPE = dB_TYPE;
	}

	public static String getCOPY_RIGHT() {
		return COPY_RIGHT;
	}

	public static void setCOPY_RIGHT(String cOPY_RIGHT) {
		COPY_RIGHT = cOPY_RIGHT;
	}

	public static int getAREA_CITY_LENGTH() {
		return AREA_CITY_LENGTH;
	}

	public static void setAREA_CITY_LENGTH(int aREA_CITY_LENGTH) {
		AREA_CITY_LENGTH = aREA_CITY_LENGTH;
	}

	public static int getAREA_COUNTY_LENGTH() {
		return AREA_COUNTY_LENGTH;
	}

	public static void setAREA_COUNTY_LENGTH(int aREA_COUNTY_LENGTH) {
		AREA_COUNTY_LENGTH = aREA_COUNTY_LENGTH;
	}

	public static int getAREA_REGION_LENGTH() {
		return AREA_REGION_LENGTH;
	}

	public static void setAREA_REGION_LENGTH(int aREA_REGION_LENGTH) {
		AREA_REGION_LENGTH = aREA_REGION_LENGTH;
	}

	public static int getAREA_SUB_REGION_LENGTH() {
		return AREA_SUB_REGION_LENGTH;
	}

	public static void setAREA_SUB_REGION_LENGTH(int aREA_SUB_REGION_LENGTH) {
		AREA_SUB_REGION_LENGTH = aREA_SUB_REGION_LENGTH;
	}

	public static String getADMIN_JOB_ID() {
		return ADMIN_JOB_ID;
	}

	public static void setADMIN_JOB_ID(String aDMIN_JOB_ID) {
		ADMIN_JOB_ID = aDMIN_JOB_ID;
	}

	public static String getSCREEN_JOB_ID() {
		return SCREEN_JOB_ID;
	}

	public static void setSCREEN_JOB_ID(String sCREEN_JOB_ID) {
		SCREEN_JOB_ID = sCREEN_JOB_ID;
	}

	public static String getDEVELOP_USER() {
		return DEVELOP_USER;
	}

	public static void setDEVELOP_USER(String dEVELOP_USER) {
		DEVELOP_USER = dEVELOP_USER;
	}

	public static Map<String, StaffSessBean> getLOGINUSERSESSION() {
		return LOGINUSERSESSION;
	}

	public static void setLOGINUSERSESSION(Map<String, StaffSessBean> lOGINUSERSESSION) {
		LOGINUSERSESSION = lOGINUSERSESSION;
	}

	public static int getINITPARAM_TASK_TIME() {
		return INITPARAM_TASK_TIME;
	}

	public static void setINITPARAM_TASK_TIME(int iNITPARAM_TASK_TIME) {
		INITPARAM_TASK_TIME = iNITPARAM_TASK_TIME;
	}

	public static int getHOTMAP_TASK_TIME() {
		return HOTMAP_TASK_TIME;
	}

	public static void setHOTMAP_TASK_TIME(int hOTMAP_TASK_TIME) {
		HOTMAP_TASK_TIME = hOTMAP_TASK_TIME;
	}

	public static int getHOTMAP_TASK2_TIME() {
		return HOTMAP_TASK2_TIME;
	}

	public static void setHOTMAP_TASK2_TIME(int hOTMAP_TASK2_TIME) {
		HOTMAP_TASK2_TIME = hOTMAP_TASK2_TIME;
	}

	public static int getDATAMONITOR_TASK_TIME() {
		return DATAMONITOR_TASK_TIME;
	}

	public static void setDATAMONITOR_TASK_TIME(int dATAMONITOR_TASK_TIME) {
		DATAMONITOR_TASK_TIME = dATAMONITOR_TASK_TIME;
	}

	public static int getUSERRIGHT_TASK_TIME() {
		return USERRIGHT_TASK_TIME;
	}

	public static void setUSERRIGHT_TASK_TIME(int uSERRIGHT_TASK_TIME) {
		USERRIGHT_TASK_TIME = uSERRIGHT_TASK_TIME;
	}

	public static int getDATATIME_TASK_TIME() {
		return DATATIME_TASK_TIME;
	}

	public static void setDATATIME_TASK_TIME(int dATATIME_TASK_TIME) {
		DATATIME_TASK_TIME = dATATIME_TASK_TIME;
	}

	public static int getAREA_TASK_TIME() {
		return AREA_TASK_TIME;
	}

	public static void setAREA_TASK_TIME(int aREA_TASK_TIME) {
		AREA_TASK_TIME = aREA_TASK_TIME;
	}

	public static int getDIM_TASK_TIME() {
		return DIM_TASK_TIME;
	}

	public static void setDIM_TASK_TIME(int dIM_TASK_TIME) {
		DIM_TASK_TIME = dIM_TASK_TIME;
	}

	public static String getWARN_RED_NUM() {
		return WARN_RED_NUM;
	}

	public static void setWARN_RED_NUM(String wARN_RED_NUM) {
		WARN_RED_NUM = wARN_RED_NUM;
	}

	public static String getWARN_ORANGE_NUM() {
		return WARN_ORANGE_NUM;
	}

	public static void setWARN_ORANGE_NUM(String wARN_ORANGE_NUM) {
		WARN_ORANGE_NUM = wARN_ORANGE_NUM;
	}

	public static String getWARN_YELLOW_NUM() {
		return WARN_YELLOW_NUM;
	}

	public static void setWARN_YELLOW_NUM(String wARN_YELLOW_NUM) {
		WARN_YELLOW_NUM = wARN_YELLOW_NUM;
	}

	public static Map<String, Set<String>> getVISIT_LIMIT_MAP() {
		return VISIT_LIMIT_MAP;
	}

	public static void setVISIT_LIMIT_MAP(Map<String, Set<String>> vISIT_LIMIT_MAP) {
		VISIT_LIMIT_MAP = vISIT_LIMIT_MAP;
	}

	public static int getVISIT_LIMIT_NUM() {
		return VISIT_LIMIT_NUM;
	}

	public static void setVISIT_LIMIT_NUM(int vISIT_LIMIT_NUM) {
		VISIT_LIMIT_NUM = vISIT_LIMIT_NUM;
	}

	public static String getFormatTime() {
		return FORMAT_TIME;
	}

	public static String getFormatDay() {
		return FORMAT_DAY;
	}

	public static String getBase64Key() {
		return BASE64_KEY;
	}

	public static String getDeployTypeProduct() {
		return DEPLOY_TYPE_PRODUCT;
	}

	public static String getDeployTypeDevelop() {
		return DEPLOY_TYPE_DEVELOP;
	}

	public static String getDataSourceCmcc() {
		return DATA_SOURCE_CMCC;
	}

	public static String getDataSourceAll() {
		return DATA_SOURCE_ALL;
	}

	public static String getOperatorSuccessCode() {
		return OPERATOR_SUCCESS_CODE;
	}

	public static String getOperatorFailureCode() {
		return OPERATOR_FAILURE_CODE;
	}

	public static String getSourceYd() {
		return SOURCE_YD;
	}

	public static String getSourceLt() {
		return SOURCE_LT;
	}

	public static String getSourceDx() {
		return SOURCE_DX;
	}

	public static String getDeployProvinceZj() {
		return DEPLOY_PROVINCE_ZJ;
	}

	public static String getDeployProvinceBj() {
		return DEPLOY_PROVINCE_BJ;
	}
	
	public static String getDEPLOY_PROVINCE_CORE_LNG() {
		return DEPLOY_PROVINCE_CORE_LNG;
	}

	public static void setDEPLOY_PROVINCE_CORE_LNG(String dEPLOY_PROVINCE_CORE_LNG) {
		DEPLOY_PROVINCE_CORE_LNG = dEPLOY_PROVINCE_CORE_LNG;
	}

	public static String getDEPLOY_PROVINCE_CORE_LAT() {
		return DEPLOY_PROVINCE_CORE_LAT;
	}

	public static void setDEPLOY_PROVINCE_CORE_LAT(String dEPLOY_PROVINCE_CORE_LAT) {
		DEPLOY_PROVINCE_CORE_LAT = dEPLOY_PROVINCE_CORE_LAT;
	}

	public static String getDEPLOY_PROVINCE_NAME_SHORTHAND() {
		return DEPLOY_PROVINCE_NAME_SHORTHAND;
	}

	public static void setDEPLOY_PROVINCE_NAME_SHORTHAND(String dEPLOY_PROVINCE_NAME_SHORTHAND) {
		DEPLOY_PROVINCE_NAME_SHORTHAND = dEPLOY_PROVINCE_NAME_SHORTHAND;
	}

	public static String getDEPLOY_PROVINCE_CAPITAL_NAME() {
		return DEPLOY_PROVINCE_CAPITAL_NAME;
	}

	public static void setDEPLOY_PROVINCE_CAPITAL_NAME(String dEPLOY_PROVINCE_CAPITAL_NAME) {
		DEPLOY_PROVINCE_CAPITAL_NAME = dEPLOY_PROVINCE_CAPITAL_NAME;
	}

	public static void setAPI_AGENT_FLAG(String aPI_AGENT_FLAG) {
		API_AGENT_FLAG = aPI_AGENT_FLAG;
	}

	public static void setMAP_AGENT_URL(String mAP_AGENT_URL) {
		MAP_AGENT_URL = mAP_AGENT_URL;
	}

	public static void setWEATHER_AGENT_URL(String wEATHER_AGENT_URL) {
		WEATHER_AGENT_URL = wEATHER_AGENT_URL;
	}

	public static String getLOGIN_HTML() {
		return LOGIN_HTML;
	}

	public static void setLOGIN_HTML(String lOGIN_HTML) {
		LOGIN_HTML = lOGIN_HTML;
	}

	public static String getAPI_AGENT_FLAG() {
		return API_AGENT_FLAG;
	}

	public static String getMAP_AGENT_URL() {
		return MAP_AGENT_URL;
	}

	public static String getWEATHER_AGENT_URL() {
		return WEATHER_AGENT_URL;
	}
	public static boolean isREGION_MATCH_SITE_FLAG() {
		return REGION_MATCH_SITE_FLAG;
	}

	public static void setREGION_MATCH_SITE_FLAG(boolean rEGION_MATCH_SITE_FLAG) {
		REGION_MATCH_SITE_FLAG = rEGION_MATCH_SITE_FLAG;
	}

	public static String getTOP_AREA_NAME() {
		return TOP_AREA_NAME;
	}

	public static void setTOP_AREA_NAME(String tOP_AREA_NAME) {
		TOP_AREA_NAME = tOP_AREA_NAME;
	}

	public static int getMAP_MINZOOM() {
		return MAP_MINZOOM;
	}

	public static void setMAP_MINZOOM(int mAP_MINZOOM) {
		MAP_MINZOOM = mAP_MINZOOM;
	}

	public static int getMAP_MAXZOOM() {
		return MAP_MAXZOOM;
	}

	public static void setMAP_MAXZOOM(int mAP_MAXZOOM) {
		MAP_MAXZOOM = mAP_MAXZOOM;
	}
}
